package org.example.anotations;

import org.example.consts.MySQLDataType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;



@Target(ElementType.FIELD)
@Retention(RetentionPolicy.SOURCE)
public @interface TableCol {
    String name();
    String type() default MySQLDataType.VARCHAR;
    int length() default 255;
    boolean primaryKey() default false;
    String comment() default "";
}
